package org.the.gsdo.server;

import org.springframework.core.env.Environment;

public class PropertyProvider {

	public enum Key {

		VERSION("gsdo.version");

		private String name;
		private Key(String name) {
			this.name = name;
		}
		public String getName() {
			return this.name;
		}
	}

	private final Environment env;

	public PropertyProvider(Environment env) {
		this.env = env;
	}

	public String getProperty(Key key) {
		return env.getProperty(key.getName());
	}

}
